package apitest;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.function.IntUnaryOperator;

public class test {
    public static void main(String[] args) {
//        LocalDateTime now = LocalDateTime.now();
//        String s = now.format(DateTimeFormatter.ofPattern("yy-MM-dd-HH-mm-ss"));
//        System.out.println(s);
        int[] ints = {1, 2, 3};
//        String string = Arrays.toString(ints);
//        System.out.println(string);
//        int[] copy = Arrays.copyOf(ints, 2);
//        System.out.println(Arrays.toString(copy));
        Arrays.setAll(ints,s->s*5);
        String string = Arrays.toString(ints);
//        System.out.println(string);
        Student wwj = new Student(11, "wwj");
        Student sry = new Student(12, "sry");
        Student[] students = {wwj, sry};
        Arrays.sort(students,(o1, o2) -> o2.age- o1.age);
        System.out.println(Arrays.toString(students));
    }
}
